package com.llt.chatroom.service;


import com.llt.chatroom.mapper.FriendMapper;
import com.llt.chatroom.model.Friend;
import com.llt.chatroom.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FriendService {

    @Resource
    FriendMapper friendMapper;

    public List<Friend> getFriendList(int userId) {
        return friendMapper.selectFriendList(userId);
    }

    public User searchFriend(String userName) {
        return friendMapper.searchFriend(userName);
    }

}
